package yyy.ab.modules.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import yyy.ab.common.core.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 字典
 */
@Getter
@Setter
@TableName(value = "sys_dict")
public class SysDict extends BaseEntity<Long> implements Serializable {

    @TableId(type = IdType.AUTO)
    @NotNull(groups = Update.class)
    @ApiModelProperty(value = "id", hidden = true)
    private Long id;

    @NotBlank
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "描述")
    private String description;
}